cc ?= g++
GLLIB ?= -lglut -lGL -lGLU
UNAME := $(shell uname -s)

osx: PhotonMapViz.cpp
	$(cc) /System/Library/Frameworks/GLUT.framework/GLUT /System/Library/Frameworks/OpenGL.framework/OpenGL PhotonMapViz.cpp -o vispm

linux: PhotonMapViz.cpp
	$(cc) $(GLLIB) -o vispm PhotonMapViz.cpp

#ifeq ($(UNAME),Darwin)
#	CFLAGS += -D __APPLE__
#	PLATFORM := osx
#else
#	PLATFORM := linux
#endif

#info:
#	echo $(PLATFORM)

clean:
	rm -f vispm *.o
